package com.winning.yanghao.designpattern.factory.simple;

import com.winning.yanghao.designpattern.factory.Computer;

public class SimpleFactoryTest {

    public static void main(String[] args) {
        ComputerFactory computerFactory = new ComputerFactory();
        Computer computer = computerFactory.getComputer("Apple");
        if(computer != null){
            computer.printName();
            computer.printColor();
        }
    }

}
